projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
521f9e2
)
tests: Reset the unnamed counter before a test run
author
Benjamin Otte
<otte@redhat.com>
Wed, 22 Jun 2011 02:14:49 +0000
(
04:14
+0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 5 Jul 2011 20:08:04 +0000
(16:08 -0400)
This guarantees that objects are named the same all the time.
tests/a11y/accessibility-dump.c
patch
|
blob
|
history
diff --git
a/tests/a11y/accessibility-dump.c
b/tests/a11y/accessibility-dump.c
index d91df61f94d5cb90978bc39c69142af2d347775a..3f2152384a6c0046f56de09b14dc8cffca243220 100644
(file)
--- a/
tests/a11y/accessibility-dump.c
+++ b/
tests/a11y/accessibility-dump.c
@@
-100,7
+100,13
@@
done:
return diff;
}
-static int unnamed_object_count = 0;
+static int unnamed_object_count;
+
+static void
+setup_test (void)
+{
+ unnamed_object_count = 0;
+}
static const char *
get_name (AtkObject *accessible)
@@
-727,7
+733,7
@@
add_test_for_file (GFile *file)
g_test_add_vtable (g_file_get_path (file),
0,
g_object_ref (file),
-
NULL
,
+
(GTestFixtureFunc) setup_test
,
(GTestFixtureFunc) test_ui_file,
(GTestFixtureFunc) g_object_unref);
}